﻿
@{
    var _forumJump = ForumRepo.Jump();
 
    var _url = ViewBag.ActiveUrl as ForumUrl;
}


<div class="navigation rc white-bt">
    <span class="time-zone">
        @Html.Raw(String.Format(ForumContext.GetText(LanguageSection.GLOBAL, "TIME_INFO"), (ForumContext.TimeZone.Hours > 0 ? "+" : "") + ForumContext.TimeZone, ForumContext.TimeFormat(DateTime.UtcNow)))</span>


     <select class="select" onchange="$.MvcForum.jump(this.value)">
        @foreach (ForumUrl f in  _forumJump)
        {
            if(!string.IsNullOrWhiteSpace(f.Title))
            {
                var _option = string.Format("<option value=\"{0}\" class=\"{1}\" {2}>{3}</option>\n", f.Url, f.CssClass, ForumContext.Compare(_url, f) ? "selected=\"selected\"" : string.Empty, Html.Encode(f.Title));
                @Html.Raw(_option)
            }
        }
        
        </select>


       @* @Html.DropDownList("forumJump", new SelectList(_forumJump.AsEnumerable(), "ShortUrl", "Title", _val), new { @style = "min-width:220px;", @class = "select", @onchange = "$.MvcForum.jump(this.value)" })*@
        
       
    <br class="empty" />
</div>
